#include "ringbuffer.h"

Ringbuffer::Ringbuffer()
{
  Ringbuffer(16);
}

Ringbuffer::Ringbuffer(unsigned short Size)
{
  m_Data = (unsigned char *) malloc(Size);
  m_pWrite = m_Data;
  m_pRead = m_Data;
}

Ringbuffer::~Ringbuffer()
{
  m_pWrite = 0;
  m_pRead = 0;
  m_Data = 0;
}

bool Ringbuffer::Write(unsigned char *Data, unsigned char NrOfBytes)
{
  m_Data[0] = Data[0];
  m_Data[1] = Data[1];
  m_Data[2] = Data[2];
  return true;  
}

bool Ringbuffer::Read(unsigned char *Data, unsigned char NrOfBytes)
{
  
  return true;
}
